<?php

require('../e/class/connect.php'); //引入数据库配置文件和公共函数文件
require('../e/class/db_sql.php'); //引入数据库操作文件
require('../e/data/dbcache/class.php'); //引入栏目缓存文件
$link = db_connect(); //连接MYSQL
$empire = new mysqlquery(); //声明数据库操作类
$editor = 1; //声明目录层次
if(!is_numeric($_GET['classid'])){
    printerror('ParamError','http://',1);
}
?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <link rel="stylesheet" href="../skin/default/css/styles.css"/>
    <title>关于我们</title>
</head>
<body>
<header>
    <!--<div>此处添加logo</div>-->
    <div id="nav">
        <nav id="colorNav">
            <div class="logo"><img src="../skin/default/images/logo.png"></div>
            <ul>
                <?php $sql = 'select classid,classname,classpath from phome_enewsclass where bclassid=0 order by classid asc';
                $re = $empire->query($sql);
                $index = 0;
                while ($list = $empire->fetch($re)) {
                    ?>
                    <li class="">
                        <a href="/<?= $list['classpath'] ?>/index.php?classid=<?= $list['classid'] ?>" <?php if ($index == 1) {
                            echo 'id="choose"';
                        } ?> ><?= $list['classname'] ?></a>
                    </li>

                    <?php $index++;
                }
                unset($sql);
                unset($re);
                unset($list); ?>
            </ul>
        </nav>
    </div>
</header>
<!--
作者：offline
        时间：2018-05-03
        描述：这是中间部分
        -->
<?php $sql = 'select newstext from  phome_ecms_news_data_1 where classid='.$_GET['classid'].' limit 1';
$re = $empire->query($sql);
$index = 0;   while ($list = $empire->fetch($re)) { $newstext=stripslashes($list['newstext'])?>
    <div style="text-align: center;width: 100%"><?= $newstext ?></div>
    <?php $index++;
}
unset($sql);
unset($re);
unset($list);
?>
<div class="footer">
    <iframe src="../index/footer.html" frameborder="0"  scrolling="no" style="width: 100%;padding-bottom: 20px"></iframe>
</div>